Skip to content

feat(linter): detect redundant continue-on-failure wrappers - #1868

Open
bhirsz wants to merge 4 commits into
mainfrom
bhirsz-fix-redundant-continue-wrappers
Open

feat(linter): detect redundant continue-on-failure wrappers#1868
bhirsz wants to merge 4 commits into
mainfrom
bhirsz-fix-redundant-continue-wrappers

Conversation

@bhirsz

@bhirsz bhirsz commented Aug 17, 2026

Copy link
Copy Markdown
Member

Summary

  • add TAG12 redundant-continue-on-failure for tests and user keywords with effective continue-on-failure tags
  • provide a SAFE fix that unwraps redundant calls while preserving comments, continuations, indentation, and nested run-keyword structure
  • skip assigned calls, template data, removed tags, and calls that may resolve to shadowing user/imported keywords

Testing

  • uv run pytest tests\linter tests\project -q (992 passed, 66 skipped)
  • uv run ruff check
  • uv run ruff format --check
  • uv run mypy --config-file=pyproject.toml .\src\robocop\parsing\run_keywords.py .\src\robocop\linter\checkers\tags.py .\src\robocop\linter\rules\tags.py

Part of #850

bhirsz and others added 2 commits August 17, 2026 09:19
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@bhirsz bhirsz mentioned this pull request Aug 17, 2026
bhirsz and others added 2 commits August 17, 2026 09:40
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant